import math
#
# for i in range(100,201):
#     j=2
#
#     while i>j:
#         if i % j != 0:
#             j+=1
#         else:
#             break
#         if i==j:
#             print(f'{i}是素数')


#遍历
for i in range(100,201):
    #默认为素数
    flag = True
    for j in range(2,i):
        # 如果有2以上的整除则转换为False并退出循环
        if i % j == 0:
            flag=False
            break
    if flag:
        print(f'{i}是素数',end='\t')

# for i in range(100,201):
#     m = int(math.sqrt(i))
#     for j in range(2,m):
#         if i % j != 0:
#             if j==m:
#                 print(i, end='\t')
#                 break

